RE: [SQL] indexing a datetime by date

Поиск
Список
Период
Сортировка
От Herouth Maoz
Тема RE: [SQL] indexing a datetime by date
Дата
Msg-id l0311070ab3266cb423c7@[147.233.148.140]
обсуждение исходный текст
Ответ на RE: [SQL] indexing a datetime by date  ("Jackson, DeJuan" <djackson@cpsgroup.com>)
Список pgsql-sql
At 06:07 +0200 on 30/03/1999, Jackson, DeJuan wrote:


>
> Part of the problem is that PostgreSQL Assumes that a functions value will
> change each time it is required, therefore automatic table scan and the
> function is called for each row.
> Try using 'now'::date instead of now()::date

How about using the ANSI standard CURRENT_DATE instead of either? It's
already of type date. Or is it considered a function call?

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma




В списке pgsql-sql по дате отправления:

Предыдущее
От: Herouth Maoz
Дата:
Сообщение: Re: [GENERAL] Returning an integer from a date
Следующее
От: Herouth Maoz
Дата:
Сообщение: Re: [GENERAL] sorting by date & time in descending order ??